/*
 * TimerRelay.h
 *
 *  Created on: 2012. 10. 22.
 *      Author: dalxx
 */
#include "PLCConfig.h"

#ifndef TIMERRELAY_H_
#define TIMERRELAY_H_


#include "DigitalLogicRelay.h"
namespace PLCLib {

class TimerRelay: public DigitalLogicRelay {
protected:
	unsigned int delay;
	unsigned int duration;
	unsigned long start;
	bool isExcited;
public:
	TimerRelay(const char* _name, unsigned int _delay, unsigned int _duration);
	virtual ~TimerRelay();
	virtual bool CalculateNext();
};

} /* namespace PLCLib */
#endif /* TIMERRELAY_H_ */
